package events;

public class RequestHeader {

	private long fileSize; // in bytes;
	public final static int FILE_BLOCK_SIZE = 256; //in KB

	public RequestHeader(long fileSize) {
		super();
		this.fileSize = fileSize;
	}

	public long getFileSize() {
		return fileSize;
	}

	public void setFileSize(long fileSize) {
		this.fileSize = fileSize;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (int) (fileSize ^ (fileSize >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final RequestHeader other = (RequestHeader) obj;
		if (fileSize != other.fileSize)
			return false;
		return true;
	}

}
